package org.jeecg.modules.car.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.jeecg.entity.car.CarType;
import org.jeecg.modules.car.mapper.CarTypeMapper;
import org.jeecg.modules.car.service.ICarTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import java.util.List;

/**
 * @Description: 车场车类表
 * @Author: jeecg-boot
 * @Date:   2020-09-30
 * @Version: V1.0
 */
@Service
public class CarTypeServiceImpl extends ServiceImpl<CarTypeMapper, CarType> implements ICarTypeService {

    @Autowired
    private CarTypeMapper carTypeMapper;


    @Override
    public List<CarType> findPage(Page<CarType> page, CarType carType) {
        return carTypeMapper.findPage(page,carType);
    }

    @Override
    public void batchSaveOrUpdate(List<CarType> carTypeList) {
        carTypeMapper.batchSaveOrUpdate(carTypeList);
    }

    @Override
    public List<CarType> queryCarTypeByParkId(String parkId) {
        return carTypeMapper.queryCarTypeByParkId(parkId);
    }

    @Override
    public List<CarType> findByProject(String projectId) {
        return carTypeMapper.findByProject(projectId);
    }
}
